/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.lang.reflect.Field;
/*     */ import net.minecraft.util.math.Vec3d;
/*     */ import org.lwjgl.util.vector.Matrix4f;
/*     */ import org.lwjgl.util.vector.Vector3f;
/*     */ import org.lwjgl.util.vector.Vector4f;
/*     */ 
/*     */ 
/*     */ public abstract class gt
/*     */ {
/*     */   public static Vector3f z;
/*     */   public static Vector3f i;
/*     */   public static Vector3f w;
/*  15 */   public static float q = 57.29578F;
/*  16 */   public static float g = 0.017453292F;
/*     */   
/*     */   public static Vec3d v(Vec3d a, Vec3d vec3d1) {
/*  19 */     return a.func_72441_c(vec3d1.field_72450_a, vec3d1.field_72448_b, vec3d1.field_72449_c);
/*     */   }
/*     */   
/*     */   public static double[] v(double a, double d1, double d2) {
/*  23 */     double d3 = Math.cos(d2);
/*  24 */     double d4 = Math.sin(d2);
/*  25 */     double d5 = a * d3 - d1 * d4;
/*  26 */     double d6 = d1 * d3 + a * d4;
/*  27 */     return new double[] { d5, d6 };
/*     */   }
/*     */   
/*     */   public static Vector3f v(Number a, Number number1, Number number2) {
/*  31 */     if (a == null || number1 == null || number2 == null) {
/*  32 */       return null;
/*     */     }
/*  34 */     return new Vector3f(a.floatValue(), number1.floatValue(), number2.floatValue());
/*     */   }
/*     */   
/*     */   public static void v(Vec3d a) {
/*  38 */     System.out.println("Vector x = " + a.field_72450_a);
/*  39 */     System.out.println("Vector y = " + a.field_72448_b);
/*  40 */     System.out.println("Vector z = " + a.field_72449_c);
/*     */   }
/*     */   
/*     */   public static void v(Object a) {
/*  44 */     System.out.println(a);
/*     */   }
/*     */   
/*     */   public static void v(Matrix4f a) {
/*  48 */     Field[] arrayOfField = a.getClass().getFields();
/*  49 */     System.out.println("MATRIX DATA");
/*  50 */     System.out.println("~~~Standard Print~~~");
/*  51 */     v(a);
/*  52 */     System.out.println("~~~In-Depth Print~~~");
/*  53 */     for (Field field : arrayOfField) {
/*  54 */       String str = field.getName() + " = ";
/*     */       try {
/*  56 */         str = str + field.getFloat(a);
/*     */       }
/*  58 */       catch (Exception exception) {
/*  59 */         str = str + "ERROR";
/*     */       } 
/*  61 */       System.out.println(str);
/*     */     } 
/*     */   }
/*     */   
/*     */   public static Matrix4f v(float a, float f1, float f2, float f3, float f4, float f5) {
/*  66 */     Vector3f vector3f = new Vector3f(a, f1, f2);
/*  67 */     Matrix4f matrix4f = new Matrix4f();
/*  68 */     matrix4f.translate(vector3f);
/*  69 */     matrix4f.rotate(f5, w);
/*  70 */     matrix4f.rotate(f4, i);
/*  71 */     matrix4f.rotate(f3, z);
/*  72 */     return matrix4f;
/*     */   }
/*     */   
/*     */   public static Matrix4f v(float[] a) {
/*  76 */     return v(a[0], a[1], a[2], a[3], a[4], a[5]);
/*     */   }
/*     */   
/*     */   public static Matrix4f v(float a) {
/*  80 */     return v(a, a, a, a, a, a);
/*     */   }
/*     */   
/*     */   public static Vector4f v(Vector4f a, float f, Vector4f vector4f1) {
/*  84 */     if (vector4f1 == null) {
/*  85 */       vector4f1 = new Vector4f();
/*     */     }
/*  87 */     a.x *= f;
/*  88 */     a.y *= f;
/*  89 */     a.z *= f;
/*  90 */     a.w *= f;
/*  91 */     return vector4f1;
/*     */   }
/*     */   
/*     */   public static Matrix4f v(Matrix4f a, float f, Matrix4f matrix4f1) {
/*  95 */     if (matrix4f1 == null) {
/*  96 */       matrix4f1 = new Matrix4f();
/*     */     }
/*  98 */     a.m00 *= f;
/*  99 */     a.m01 *= f;
/* 100 */     a.m02 *= f;
/* 101 */     matrix4f1.m02 = a.m03 * f;
/* 102 */     a.m10 *= f;
/* 103 */     a.m11 *= f;
/* 104 */     a.m12 *= f;
/* 105 */     a.m13 *= f;
/* 106 */     a.m20 *= f;
/* 107 */     a.m21 *= f;
/* 108 */     a.m22 *= f;
/* 109 */     a.m23 *= f;
/* 110 */     a.m30 *= f;
/* 111 */     a.m31 *= f;
/* 112 */     a.m32 *= f;
/* 113 */     a.m33 *= f;
/* 114 */     return a;
/*     */   }
/*     */   
/*     */   public static float[] v(Matrix4f a) {
/* 118 */     return new float[] { a.m30, a.m31, a.m32 };
/*     */   }
/*     */   
/*     */   public static Vector3f v(Matrix4f a) {
/* 122 */     return new Vector3f(a.m30, a.m31, a.m32);
/*     */   }
/*     */   
/*     */   public static Vector3f v(Vector3f a) {
/* 126 */     return new Vector3f(-a.x, -a.y, -a.z);
/*     */   }
/*     */   
/*     */   public static Vector3f v(String a, String str1, String str2) {
/* 130 */     float f1 = Float.parseFloat(a);
/* 131 */     float f2 = Float.parseFloat(str1);
/* 132 */     float f3 = Float.parseFloat(str2);
/* 133 */     return new Vector3f(f1, f2, f3);
/*     */   }
/*     */   
/*     */   public static Vector4f v(Vector4f a) {
/* 137 */     return new Vector4f(a.x, a.y, a.z, a.w);
/*     */   }
/*     */   
/*     */   static {
/* 141 */     z = new Vector3f(1.0F, 0.0F, 0.0F);
/* 142 */     i = new Vector3f(0.0F, 1.0F, 0.0F);
/* 143 */     w = new Vector3f(0.0F, 0.0F, 1.0F);
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\gt.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */